package com.eshop.eshopmanagersystem.controller;


import com.eshop.eshopmanagersystem.dal.TestDAL;
import com.eshop.eshopmanagersystem.model.TestInfo;
import com.eshop.eshopmanagersystem.unti.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 控制器层
 */

@RestController
public class TestController {

    @Autowired
    TestDAL tdal;

    /**
     * 测试方法
     */
    @CrossOrigin
    @RequestMapping("/getall")
    public Response getALLTest(){
        return new Response(200,"查询成功",tdal.getALLTest());
    }

}
